package com.example.hinfc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends Activity {
    private static String TAG = "MainActivity";
    private View bankCardView = null;
    private View mobilePosView = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        this.bankCardView = findViewById(R.id.bank_card);
        this.bankCardView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i(TAG, "PosActivity start...");
                Intent intent = new Intent(MainActivity.this, HceService.class);
                startService(intent);
            }
        });

        this.mobilePosView = findViewById(R.id.mobile_pos);
        this.mobilePosView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i(TAG, "PosActivity start...");
                Intent intent = new Intent(MainActivity.this, PosActivity.class);
                startActivity(intent);
            }
        });
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }
}